package com.byb.server.service.dto.Wc;

import java.io.Serializable;
import java.util.Objects;

public class ProductRankDTO implements Serializable {

    private Long id;

    private String name;

    private String score;

    /**
     * 排名
     */
    private String ranking;

    /**
     * 性价比
     */
    private String costEffective;

    /**
     * 性价比内容
     */
    private String costEffectiveInfo;

    /**
     * 免赔额
     */
    private String deductible;

    /**
     * 免赔额内容
     */
    private String deductibleInfo;

    /**
     * 续保
     */
    private String renewal;

    /**
     * 续保内容
     */
    private String renewalInfo;

    /**
     * 理赔服务
     */
    private String claimsService;

    /**
     * 理赔服务内容
     */
    private String claimsServiceInfo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getRanking() {
        return ranking;
    }

    public void setRanking(String ranking) {
        this.ranking = ranking;
    }

    public String getCostEffective() {
        return costEffective;
    }

    public void setCostEffective(String costEffective) {
        this.costEffective = costEffective;
    }

    public String getCostEffectiveInfo() {
        return costEffectiveInfo;
    }

    public void setCostEffectiveInfo(String costEffectiveInfo) {
        this.costEffectiveInfo = costEffectiveInfo;
    }

    public String getDeductible() {
        return deductible;
    }

    public void setDeductible(String deductible) {
        this.deductible = deductible;
    }

    public String getDeductibleInfo() {
        return deductibleInfo;
    }

    public void setDeductibleInfo(String deductibleInfo) {
        this.deductibleInfo = deductibleInfo;
    }

    public String getRenewal() {
        return renewal;
    }

    public void setRenewal(String renewal) {
        this.renewal = renewal;
    }

    public String getRenewalInfo() {
        return renewalInfo;
    }

    public void setRenewalInfo(String renewalInfo) {
        this.renewalInfo = renewalInfo;
    }

    public String getClaimsService() {
        return claimsService;
    }

    public void setClaimsService(String claimsService) {
        this.claimsService = claimsService;
    }

    public String getClaimsServiceInfo() {
        return claimsServiceInfo;
    }

    public void setClaimsServiceInfo(String claimsServiceInfo) {
        this.claimsServiceInfo = claimsServiceInfo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        ProductRankDTO productRankDTO = (ProductRankDTO) o;
        if(productRankDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), productRankDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }
}
